#
# Cookbook Name:: yum
# Attributes:: epel
#
# Copyright 2011, Eric G. Wolfe
# Copyright 2011, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

case node['platform']
when "amazon"
  default['yum']['epel-glusterfs']['url'] = "http://repos.fedorapeople.org/repos/kkeithle/glusterfs/epel-6/$basearch/"
  default['yum']['epel-glusterfs-swift']['url'] = "http://repos.fedorapeople.org/repos/kkeithle/glusterfs/epel-6/noarch/"
else
  default['yum']['epel-glusterfs']['url'] = "http://repos.fedorapeople.org/repos/kkeithle/glusterfs/epel-$releasever/$basearch/"
  default['yum']['epel-glusterfs-swift']['url'] = "http://repos.fedorapeople.org/repos/kkeithle/glusterfs/epel-$releasever/noarch/"
end

default['yum']['epel-glusterfs']['baseurl'] = ""
default['yum']['epel-glusterfs']['key'] = "pub.key"
default['yum']['epel-glusterfs']['key_url'] = "http://repos.fedorapeople.org/repos/kkeithle/glusterfs/#{node['yum']['epel-glusterfs'][:key]}"
default['yum']['epel-glusterfs']['includepkgs'] = nil
default['yum']['epel-glusterfs']['exclude'] = nil

default['yum']['epel-glusterfs-swift']['baseurl'] = ""
default['yum']['epel-glusterfs-swift']['key'] = "pub.key"
default['yum']['epel-glusterfs-swift']['key_url'] = "http://repos.fedorapeople.org/repos/kkeithle/glusterfs/#{node['yum']['epel-glusterfs']['key']}"
default['yum']['epel-glusterfs-swift']['includepkgs'] = nil
default['yum']['epel-glusterfs-swift']['exclude'] = nil
